package top.huxy.boot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huxy.boot.model.vo.VOComment;

import java.util.List;

/**
 * @Classname CommentMapper
 * @Description CommentMapper
 * @Date 2021/10/14 17:01
 * @Created by huxy
 */
@Mapper
@Repository
public interface CommentMapper {
    int addComment(Integer blogId, Integer userId, String content,long createTime);

    List<VOComment> getCommentList(Integer blogID);

    int getCommentCount();

    int getNewCommentCount(long lastDate);
}
